package com.pronhub.luowowo.search.repository;

import com.pronhub.luowowo.search.domain.TravelTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * spring-data-jpa操作接口
 *
 */
@Repository
public interface TravelTemplateRepository extends ElasticsearchRepository<TravelTemplate, Long> {


    /**
     * 通过目的地名查询游记集合
     * @param destName
     * @return
     */
    List<TravelTemplate> findByDestName(String destName);
}
